//
//  OrderExpressTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/7.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "OrderExpressTableViewCell.h"

@implementation OrderExpressTableViewCell{
    GLGWLabel * expressLabel;
    GLGWLabel * timeLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.showPush = YES;
        expressLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        expressLabel.text = @"您的订单已由火车运输，车牌/车次为京A12311，司 机姓名为黎明，1800000000，请耐心等待！";
        expressLabel.numberOfLines = 0;
        expressLabel.backgroundColor = kRandomColor;
        [expressLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(44));
        }];
        //
        timeLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.contentView];
        timeLabel.text = @"2018年07月31日";
        [timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(12));
        }];
    }
    return self;
}

- (void)setDataModel:(OrderInfomationDetailDataModel *)dataModel
{
    _dataModel = dataModel;
//    NSString *str = [NSString stringWithFormat:@"您的订单已由火车运输，车牌/车次为京A12311，司机姓名为%@，1800000000，请耐心等待！",dataModel.]
//    expressLabel.text = ;

}

@end
